package com.roc.template.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName MsgReceiver
 * @Description: TODO
 * @Author Administrator
 * @Date 2020/9/23 16 16
 * @Version V1.0
 **/
@Component
@RabbitListener(queues = RabbitConfig.QUEUE_TEMPLATE)
@Slf4j
public class MsgReceiver {

    @RabbitHandler
    public void process(String content) {
        try {

        }catch (Exception e) {
            log.error("推送待办报错"+ e);
        }

    }

}
